package com.tencent.hummingbird.portal.service;

import com.tencent.hummingbird.portal.pojo.Answer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tencent.hummingbird.portal.vo.AnswerVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yxb
 * @since 2024-01-10
 */
public interface IAnswerService extends IService<Answer> {
    Answer saveAnswer(String username, AnswerVO answerVO);

    List<Answer> getAnswersByQuestionId(Integer questionId);

    void accept(Integer answerId,Integer questionId);
}
